package com.zhangdi.dwweb;

import com.zhangdi.dwdata.repository.BaseRepositoryFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * Created by zhangdi on 2020/01/18 09:38:56.
 */

@SpringBootApplication
@EnableJpaRepositories(basePackages = {"com.zhangdi.dwperms"}, repositoryFactoryBeanClass = BaseRepositoryFactoryBean.class)
@EntityScan(basePackages = "com.zhangdi.dwperms")
@ComponentScan({"com.zhangdi"})
public class BaseApplication {
    public static void main(String[] args) {
        SpringApplication.run(BaseApplication.class, args);
    }
}
